package com.utils;
	/**
	 * 页面信息实体类
	 * @author MoLi
	 *
	 */
public class PageInfo {
	private int pageSize; //页面大小
	private int pageIndex; //当前是第几页
	private int pageCount; //总共有多少页
	private int rowCount; //总数据行数
	private int beginRow; //要从第几行开始查
	
	private Boolean hasNext; //是否有下一页
	private Boolean hasPre; //是否有前一页
	
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getRowCount() {
		return rowCount;
	}
	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}
	public int getBeginRow() {
		return beginRow;
	}
	public void setBeginRow(int beginRow) {
		this.beginRow = beginRow;
	}
	public Boolean getHasNext() {
		return hasNext;
	}
	public void setHasNext(Boolean hasNex) {
		this.hasNext= hasNex;
	}
	public Boolean getHasPre() {
		return hasPre;
	}
	public void setHasPre(Boolean hasPre) {
		this.hasPre = hasPre;
	}
	@Override
	public String toString() {
		return "PageInfo [pageSize=" + pageSize + ", pageIndex=" + pageIndex + ", pageCount=" + pageCount
				+ ", rowCount=" + rowCount + ", beginRow=" + beginRow + ", hasNext=" + hasNext + ", hasPre=" + hasPre
				+ "]";
	}
	
}
